package com.hqd.ch03.v13.config;

/**
 * 对bean初始化进行增强
 */
public interface BeanPostProcessor {
    /**
     * 前置增强
     *
     * @param bean
     * @param beanName
     * @return
     */
    default Object postProcessBeforeInitialization(Object bean, String beanName) {
        return bean;
    }

    /**
     * 后置增强
     *
     * @param bean
     * @param beanName
     * @return
     */
    default Object postProcessAfterInitialization(Object bean, String beanName) {
        return bean;
    }
}
